package com.heima.user.controller;


import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.AuthDto;
import com.heima.user.service.IApUserRealnameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/api/v1/user_realname")
public class ApUserRealnameController{

    @Autowired
    private IApUserRealnameService apUserRealnameService;

    //列表查询
    @PostMapping("/list")
    public ResponseResult findList(@RequestBody AuthDto dto){
        return apUserRealnameService.findList(dto);
    }

    //审核驳回
    @PostMapping("/authFail")
    public ResponseResult authFail(@RequestBody AuthDto dto) {
        return apUserRealnameService.authFail(dto);
    }

    //审核通过
    @PostMapping("/authPass")
    public ResponseResult authPass(@RequestBody AuthDto dto) {
        return apUserRealnameService.authPass(dto);
    }
}